package sina;

import java.util.Scanner;

public class AnalyseCode {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line;
        int countAnnotation = 0;

        while (null != (line = sc.nextLine())) {
            line=line.trim();
            // 多行注释统计
            if(line.substring(0,2).equals("/*")){
                do {
                    countAnnotation++;
                    line = sc.nextLine();
                } while (!line.substring(line.length()-2,line.length()).equals("*/"));
            }
            // 单行注释统计
            if (line.substring(0, 2).equals("//")) {
                countAnnotation++;
            }
        }
        sc.close();
        System.out.println("注释行：" + countAnnotation);
    }
}